Reads the contents of a Table into an array.
#include <IE.au3>
_IETableWriteToArray ( ByRef $o_object )
Parameters
$o_object | Object variable of an InternetExplorer.Application, Table object |
Return Value
Success: | Returns a 2-dimensional array containing the contents of the Table |
Failure: | Returns 0 and sets @ERROR |
@Error: | 0 ($_IEStatus_Success) = No Error |
3 ($_IEStatus_InvalidDataType) = Invalid Data Type | |
4 ($_IEStatus_InvalidObjectType) = Invalid Object Type | |
@Extended: | Contains invalid parameter number |
Remarks
When table cells span multiple columns or rows, blank array elements are added to properly align the results. Data in spanning cells will be in the left or uppermost array elements.
Related
None.
Example
; *******************************************************
; Example 1 - Open a browser with the table example, get a reference to the second table
; on the page (index 1) and read its contents into a 2-D array
; *******************************************************
;
#include <IE.au3>
$oIE = _IE_Example ("table")
$oTable = _IETableGetCollection ($oIE, 1)
$aTableData = _IETableWriteToArray ($oTable)